import UserAction from "../action/user-action";
/**
 *
 * @param state
 * @param action
 * @returns
 */
export default function UserReducer(state: any, action: any) {
  switch (action.type) {
    case UserAction.SAVEINFO:
      return { ...state, username: "admin" };
    default:
      return state;
  }
}
